TEMPLATE = app
Item += console
Item -= app_bundle
Item -= qt

DEFINES += BOOST_TEST_MODULE=LemonPP LPP_WITH_UNIT_TESTS
DEFINES += NDEBUGX

SOURCES += \
    symbol.cpp \
    rule.cpp \
    grammar.cpp \
    parser.cpp \
    main.cpp \
    description.cpp \
    item.cpp \
    state.cpp \
    action.cpp \
    generator.cpp \
    driver.cpp \
    builder.cpp \
    coder.cpp \
    transaction.cpp

OTHER_FILES +=     mylemonpp.cc \
                    test.y \

QMAKE_CFLAGS += -pipe -g -Wall -W -fPIE
QMAKE_CXXFLAGS += -std=c++11 -stdlib=libc++
QMAKE_LFLAGS += -headerpad_max_install_names -std=c++11 -stdlib=libc++

LIBS += -lboost_program_options
LIBS += -lboost_unit_test_framework

INCLUDEPATH +=../boost

macx {
    LIBS += -L"../Install/OSX/10.8-nostd11/lib/"
    QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.8
    QMAKE_MAC_SDK = macosx10.9
}

HEADERS += \
    common.h \
    symbol.h \
    rule.h \
    grammar.h \
    parser.h \
    parser_reduction.h \
    parser_class.h \
    parser_fallback.h \
    parser_precedence.h \
    description.h \
    item.h \
    state.h \
    action.h \
    generator.h \
    driver.h \
    builder.h \
    tester.h \
    test_data.h \
    test_data_IDalgo.h \
    coder.h \
    transaction.h

